package com.jiang.mydemomaven;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

////jar包
//@SpringBootApplication
//@ServletComponentScan
//public class MydemomavenApplication {
//
//	public static void main(String[] args) {
//		SpringApplication.run(MydemomavenApplication.class, args);
//	}
//}


@SpringBootApplication
@ServletComponentScan
public class MydemomavenApplication extends SpringBootServletInitializer {

	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(MydemomavenApplication.class);
	}
	
	public static void main(String[] args) {
		SpringApplication.run(MydemomavenApplication.class, args);
	}

}
